package edu.ncu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Friend implements Serializable {
    private int friendTableId; //主键id
    private int userId;     //用户id
    private int friendId;   //朋友（另一个用户id）
    private Date friendTime;      //添加时间

    @Transient
    private User user ;
    @Transient
    private User friend ;
}
